<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/13
  Time: 14:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1" cellspacing="0" cellpadding="30" align="center">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
        </tr>
        <c:forEach items="${allTeacher}" var="teacher">
            <tr>
                <th>${teacher.id}</th>
                <th>${teacher.name}</th>
                <th>${teacher.age}</th>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
